/*
 * @Author: Wxx
 * @Date: 2022-02-25 17:50:54
 * @LastEditors: Wxx
 * @LastEditTime: 2022-02-25 17:52:21
 * @Description:
 */
const Tabbar = (
  prevState = {
    show: false,
  },
  action
) => {
  const newState = { ...prevState };
  switch (action.type) {
    case "showTabbar":
      newState.show = true;
      return newState;
    case "hideTabbar":
      newState.show = false;
      return newState;
    default:
      return prevState;
  }
};

export default Tabbar;
